# -*- coding: utf-8 -*-
from datetime import timedelta
from airflow.operators.bash import BashOperator
from jms.dim.dim_network_whole_massage import jms_dim__dim_network_whole_massage

jms_oracle__dim_network_whole_massage = BashOperator(
    task_id='jms_oracle__dim_network_whole_massage',
    execution_timeout=timedelta(hours=2),
    email=['guoruiling@jtexpress.com','yl_bigdata@yl-scm.com'],
    # name='jms_oracle__dim_network_whole_massage_{{ execution_date | date_add(1) | cst_ds }}',
    bash_command="jms/oracle/dim_network_whole_massage/execute.sh",
    pool='spmi_apack',
    retries=1,
    pool_slots=2,
)

jms_oracle__dim_network_whole_massage << [jms_dim__dim_network_whole_massage]